let { observable, observe ,computed,autorun} = require("mobx");

class Person {
    @observable name = "js";
    @observable age = 9;
    @observable list = {
        id: "1",
        name: "2"
    }
    //手机号拼接
    @observable area = "010" ;
    @observable photo = "15945789456";

    @computed get home(){
        return this.area +"_"+this.photo
    }

}

let b = new Person();
autorun(()=>{
    console.log(b.home)
})
b.area = "231";


